//
//  DMMyServiceVC.m
//  DistributionMallApp
//
//  Created by JHnoplan on 2018/10/19.
//  Copyright © 2018年 JHnoplan. All rights reserved.
//

#import "DMMyServiceVC.h"

@interface DMMyServiceVC ()

@property (weak, nonatomic) IBOutlet UILabel *firstLb;
@property (weak, nonatomic) IBOutlet UILabel *secondLb;
@property (weak, nonatomic) IBOutlet UILabel *thirdLb;

@end

@implementation DMMyServiceVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self startInit];
}

-(void)startInit {
    
    self.navigationItem.title = @"我的客服";
    self.view.backgroundColor = DMDefaultColor;
}

//一键复制
- (IBAction)copyClick:(UIButton *)sender {
    NSString *str = @"";
    switch (sender.tag) {
        case 1:
            str = _firstLb.text;
            break;
        case 2:
            str = _secondLb.text;
            break;
        case 3:
            str = _thirdLb.text;
            break;
        default:
            break;
    }
    //复制到剪切板
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string = str;
}


@end
